package org.raymond.iworks.study.basic.designpattern.chain;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
public class CollegeApprover extends Approver{
    public CollegeApprover(String name) {
        super(name);
    }

    @Override
    public void purchaseRequest(PurchaseRequest request) {
        if(request.getPrice()>5000 && request.getPrice()<=10000){
            System.out.println("请求编号id="+request.getId()+"被"+name+"处理");
        }else{
            approver.purchaseRequest(request);
        }
    }
}
